<template>
  <div class="left-container">
    <h3>Left 组件</h3>
    <p>{{ message }}</p>
    <p>{{ userinfo }}</p>
    <hr>
   
  </div>
</template>

<script>
import bus from './eventBus.js';

export default {
  props:['message','userinfo'],
  created(){
    bus.$on('share',(val)=>{
      this.message = val;
    })
  }
}
</script>

<style lang="less">
.left-container {
  padding: 0 20px 20px;
  background-color: orange;
  min-height: 250px;
  flex: 1;
}
</style>
